ifeq ($(CFG_SDK_EXPORT_FLAG),)
    ifneq ($(srctree),)
    KERNEL_DIR := $(srctree)
    SDK_DIR := $(shell cd $(KERNEL_DIR)/../../.. && /bin/pwd)
    else
    SDK_DIR := $(shell cd $(CURDIR)/../../../.. && /bin/pwd)
    endif
endif

include $(SDK_DIR)/build/base.mk

ifeq ($(CHIPSET), gk7205v200)
ARCH_NAME = gk7205v200
else ifeq ($(CHIPSET), gk7205v300)
ARCH_NAME = gk7205v200
else ifeq ($(CHIPSET), gk7202v300)
ARCH_NAME = gk7205v200
else ifeq ($(CHIPSET), gk7605v100)
ARCH_NAME = gk7205v200
endif

MOD_NAME := $(ARCH_NAME)_adc

SRCS := adc.c
SRCS += ../init/$(OSTYPE)/adc_init.c

SDK_KER_CFLAGS += -I$(GMP_DIR)/include \
		-I$(GMP_DIR)/modules/osal/include

SDK_KER_CFLAGS += -DUSER_BIT_32 -DKERNEL_BIT_32 -Wno-date-time -D_GNU_SOURCE

include $(SDK_DIR)/build/sdk_ko_rules.mk
